import time

from appium import webdriver

capability = {
    "app": "/Users/cwp/Documents/iOS_APP/Hirect.app",
    "platformName": "iOS",
    "platformVersion": "14.0",
    "deviceName": "iPhone",
    "bundleId": "com.GoldenSecond.OnJob  ",
    "udid": "9426438865055b07bba7a13b84742cb072a5759a",
    "xcodeSigningId": "iPhone Developer",
    "xcodeOrgId": "42M9APZZ4V",
    "automationName": "XCUITest",
    "useNewWDA": True,
    "noReset": True
}

# 打开Appium服务器，start server后，尝试启动被测App
driver = webdriver.Remote('http://127.0.0.1:4723/wd/hub', capability)
time.sleep(60)
driver.quit()
